<?php
 
// Defines the Vessel object
// When rebuilding SilverStripe DB, this will create DB table for Vessel

 class Vessel extends DataObject {

	//Define object elements
   static $db = array(
      'Vessel_Name' => 'Text',
      'Vessel_Rego' => 'Text'
   );
   
   	// Define one to many relationship
	static $has_many = array(
		'Sightings' => 'Sighting'
	);
}

?>